package com.zero.mxshengadmin.modules.website.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zero.mxshengadmin.modules.website.entity.WebsiteBannerEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by aicaikeji on 2019/4/3.
 */
@Mapper
public interface WebsiteBannerDao extends BaseMapper<WebsiteBannerEntity> {
    /**
     * 添加一个banner
     * @param entity
     * @return
     */
    int addBanner(WebsiteBannerEntity entity);

    /**
     * 修改一个banner
     * @param entity
     * @return
     */
    int updateBanner(WebsiteBannerEntity entity);

    /**
     * 删除一个banner
     * @param entity
     * @return
     */
    int deleteBanner(WebsiteBannerEntity entity);

    /**
     * 查询banner列表
     * @param entity
     * @return
     */
    List<WebsiteBannerEntity> findBannerList(WebsiteBannerEntity entity);
}
